"""dj_k8s_chat URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path
from voice.views import process_voice_command, upload_voice_file 

urlpatterns = [
    path('admin/', admin.site.urls),
    
    # 语音处理API
    path('api/voice/process-command/', process_voice_command, name='process_voice_command'),
    path('api/voice/upload-voice/', upload_voice_file, name='upload_voice_file'),
    
    # 以后的其他API都可以直接在这里添加
    # path('api/account/login/', account_login, name='account_login'),
    # path('api/k8s/namespaces/', k8s_namespaces, name='k8s_namespaces'),
]
